<div class="modal-header" id="scope">
	<h3 class="modal-title">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">编号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="编号" ng-model="param.data.code" ng-readonly="true"/>
					</div>
					<p>不可修改。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">线路名称：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="线路名称" ng-model="param.data.name" ng-readonly="true"/>
					</div>
					<p>不可修改。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">当前线路：</label>
					<div class="col-sm-7">
 						<table class="table">
							<tbody>
								<tr ng-repeat="each in routeStationList" >
									<td style="width:10px; border: 0"><span class="start" ng-if="each.type==1">起</span> <span
										class="up" ng-if="each.type==2&&!each.destination">上</span> <span
										class="down" ng-if="each.type==2&&each.destination">下</span> <span
										class="termina" ng-if="each.type==3">终</span></td>
									<td style="width:30px;border: 0">{{each.station.city}}</td>
									<td style="width:100px;border: 0">{{each.station.address}}</td>
									<td style="width:40px;border: 0">{{each.distance |number:1}}千米</td>
									<td style="width:40px;border: 0">{{each.duration |number:1}}小时</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="form-group" ng-show="cityFromlist.selected">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>起点站：</label>
					<div class="col-sm-5">
						<ui-select ng-model="stationFromlist.selected" theme="bootstrap">
						<ui-select-match placeholder="起点站">{{$select.selected.address}}</ui-select-match>
						<ui-select-choices
							repeat="station in stationFromlist | propsFilter:{address: $select.search}">
						<span ng-bind-html="station.address | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group" ng-show="cityTolist.selected">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>终点站：</label>
					<div class="col-sm-5">
						<ui-select ng-model="stationTolist.selected" theme="bootstrap">
						<ui-select-match placeholder="终点站">{{$select.selected.address}}</ui-select-match>
						<ui-select-choices
							repeat="station in stationTolist | propsFilter:{address: $select.search}">
						<span ng-bind-html="station.address | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>线路范围：</label>
					<div class="col-sm-5">
						<ui-select ng-model="scopelist.selected" theme="bootstrap">
						<ui-select-match placeholder="线路范围">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="scope in scopelist | propsFilter:{name: $select.search}">
						<span ng-bind-html="scope.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>线路范围选择。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>总里程数：</label>
					<div class="col-sm-5">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="总里程数"
								ng-model="param.data.distance" ng-pattern="/^\d+(\.\d+)?$/"
								required /> <span class="input-group-addon">千米</span>
						</div>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>总用时：</label>
					<div class="col-sm-5">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="总用时"
								ng-model="param.data.duration" ng-pattern="/^\d+(\.\d+)?$/"
								required /> <span class="input-group-addon">小时</span>
						</div>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"> <span
						style="color: red; text-align: center;">* &nbsp</span>是否高速：
					</label>
					<div class="col-sm-4">
						<label class="i-switch m-t-xs m-r bg-info"> <input
							type="checkbox" name="highwayFlag"
							ng-model="param.data.highwayFlag"
							ng-checked="param.data.highwayFlag==true"> <i></i>
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"> <span
						style="color: red; text-align: center;">* &nbsp</span>是否停用：
					</label>
					<div class="col-sm-4">
						<label class="i-switch m-t-xs m-r bg-info"> <input
							type="checkbox" name="disabled" ng-model="param.data.disabled"
							ng-checked="param.data.disabled==true"> <i></i>
						</label>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>
<style>
.start {
	width: 2.6rem;
	height: 2.6rem;
	line-height: 2.6rem;
	background-color: #49AAE6;
	color: #fff;
	border-radius: 50%;
	display: inline-block;
	text-align: center;
	font-size: 1.3rem;
}

.termina {
	width: 2.6rem;
	height: 2.6rem;
	line-height: 2.6rem;
	background-color: #70D7C6;
	color: #fff;
	border-radius: 50%;
	display: inline-block;
	text-align: center;
	font-size: 1.3rem;
}

.up {
	width: 2.6rem;
	height: 2.6rem;
	line-height: 2.6rem;
	background-color: #9AD0F1;
	color: #fff;
	border-radius: 50%;
	display: inline-block;
	text-align: center;
	font-size: 1.3rem;
}

.down {
	width: 2.6rem;
	height: 2.6rem;
	line-height: 2.6rem;
	background-color: #BDECE3;
	color: #fff;
	border-radius: 50%;
	display: inline-block;
	text-align: center;
	font-size: 1.3rem;
}
</style>